/*
    频道请求模块
*/

import request from "@/utils/request";


/*
    全部频道列表数据
     
*/
export const getAllChannels = () => {
    return request({
        method:'GET',
        url: 'v1_0/channels'
    })
}

/*
    批量修改频道列表数据
      /app/v1_0/user/channels
*/
export const addUserChannels = data => {
    return request({
        method:'PATCH',
        url: 'v1_0/user/channels',
        data
    })
}

/*
    删除用户指定的用户频道
     /app/v1_0/user/channels/:target
 */
export const delUserChannels = (id) =>{
    return request({
        method: 'DELETE',
        url: `v1_0/user/channels/${id}`
    })
}